package dbHandler;

import au . com . bytecode . opencsv . CSVReader ;
import au . com . bytecode . opencsv . CSVWriter ;
import java . io . FileReader ;
import java . io . IOException ;
import java . io . StringWriter ;
import java . util . List ;

/**
 *
 * @author Rick
 */
public class csv_parser {
    private static final String ST_PAT_FILE = "st_pat.csv";

    public static void main(String[] args) throws IOException {
        CSVReader reader = new CSVReader(new FileReader(ST_PAT_FILE));
        String[] nextLine;
        int line_counter = 0;
        while ((nextLine = reader.readNext()) != null) {
            line_counter++;
            System.out.println(" Line number " + line_counter + " : ");
            for (int i = 0; i < nextLine.length; i++) {
                System.out.print(" [ " + i + " ] " + nextLine[i]);
            }
            System.out.println(" ");
        }
    }
}
